package com.sig.bean;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.Table;
import org.nutz.json.JsonField;

import java.io.Serializable;

@Table("user_profile")
public class UserProfile extends BasePojo implements Serializable {
    @Id(auto = false)
    @Column("uid")
    private int userId; // 关联的用户id

    @Column
    private String nickname;// 用户昵称

    @Column
    private String email;// 用户邮箱

    @Column()
    private boolean emailChecked;// 邮箱是否已经验证过

    @Column
    @JsonField(ignore = true)
    private byte[] avatar;// 头像的byte数据

    @Column
    private String gender;// 性别

    @Column()
    private String description;// 自我介绍

    @Column()
    private String location;// 地理位置

    public UserProfile() {
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public boolean isEmailChecked() {
        return emailChecked;
    }

    public void setEmailChecked(boolean emailChecked) {
        this.emailChecked = emailChecked;
    }

    public byte[] getAvatar() {
        return avatar;
    }

    public void setAvatar(byte[] avatar) {
        this.avatar = avatar;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }
}
